﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ChangeProfile.ascx.cs"
	Inherits="RedeSocial.Web.UserControls.ChangeProfile" %>
<%@ Register Assembly="RedeSocial.Web" Namespace="RedeSocial.Web.Controls" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<style type="text/css">
	.Label
	{
		font-family: 'times New Roman' , Times, serif;
		font-size: 14px;
		font-weight: bold;
		font-style: normal;
	}
	
	.TextBox
	{
		font-family: 'times New Roman' , Times, serif;
		font-size: 14px;
		font-weight: normal;
		font-style: normal;
		color: #000000;
		background-color: #FFFFFF;
		border: thin solid #C0C0C0;
	}
	.lblError
	{
		font-family: 'times New Roman' , Times, serif;
		font-size: 14px;
		font-weight: bold;
		font-style: normal;
		color: #FF0000;
	}
	.style2
	{
		width: 133px;
	}
</style>
<table style="width: 100%;">
	<tr>
		<td align="left" class="style2">
			<asp:Label ID="lblName" runat="server" CssClass="Label" Text="Nome : "></asp:Label>
		</td>
		<td>
			<telerik:RadTextBox ID="txtName" runat="server" CssClass="TextBox" Width="200px">
			</telerik:RadTextBox>
			<asp:CustomValidator ID="ValidatorName" runat="server" ModelProperty="Name" ControlToValidate="txtName"
				ValidateEmptyText="True" OnServerValidate="CustomValidation" CssClass="lblError"
				ValidationGroup="CreateUser" ErrorMessage="Invalid Name">*</asp:CustomValidator>
		</td>
	</tr>
	<tr>
		<td align="left" class="style2">
			<asp:Label ID="lblGender" runat="server" CssClass="Label" Text="Sexo : "></asp:Label>
		</td>
		<td>
			<telerik:RadComboBox ID="cboGender" runat="server">
				<Items>
					<telerik:RadComboBoxItem runat="server" ImageUrl="~/Pics/Men.png" Value="1" ID="cboItemMen"
						Text="Male" />
					<telerik:RadComboBoxItem runat="server" ImageUrl="~/Pics/Woman.png" Value="2" ID="cboItemWoman"
						Text="Female" />
				</Items>
			</telerik:RadComboBox>
			<asp:CustomValidator ID="ValidatorGender" runat="server" ModelProperty="Gender" OnServerValidate="CustomValidation"
				CssClass="lblError" ValidationGroup="CreateUser">*</asp:CustomValidator>
		</td>
	</tr>
	<tr>
		<td align="left" class="style2">
			<asp:Label ID="lblbBirthday" runat="server" CssClass="Label" Text="Data de Nascimento : "></asp:Label>
		</td>
		<td style="width: 328px">
			<telerik:RadDatePicker ID="rdpBirthday" runat="server" CssClass="TextBox" ShowPopupOnFocus="True"
				Width="200px" Culture="(Default)" MinDate="1900-01-01">
				<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" />
				<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
			</telerik:RadDatePicker>
			<asp:CustomValidator ID="ValidatorBirthday" runat="server" ModelProperty="Birthday"
				OnServerValidate="CustomValidation" CssClass="lblError" ValidationGroup="CreateUser">*</asp:CustomValidator>
		</td>
	</tr>
	<tr>
		<td align="left" class="style2">
			<asp:Label ID="lblPass" runat="server" CssClass="Label" Text="Password :"></asp:Label>
		</td>
		<td>
			<telerik:RadTextBox ID="txtPass" runat="server" TextMode="Password" Width="200px" />
			<asp:CustomValidator ID="ValidatorPassword" runat="server" ModelProperty="Password"
				ControlToValidate="txtPass" ValidateEmptyText="True" OnServerValidate="CustomValidation"
				CssClass="lblError" ValidationGroup="CreateUser">*</asp:CustomValidator>
		</td>
	</tr>
	<tr>
		<td align="left" class="style2">
			<asp:Label ID="lblConfPass" runat="server" CssClass="Label" Text="Confirme Password :"></asp:Label>
		</td>
		<td style="width: 328px">
			<telerik:RadTextBox ID="txtConfPass" runat="server" TextMode="Password" Width="200px" />
			<asp:CustomValidator ID="ValidatorConfirmPassword" runat="server" ModelProperty="ConfirmPassword"
				ControlToValidate="txtConfPass" ValidateEmptyText="True" OnServerValidate="CustomValidation"
				CssClass="lblError" ValidationGroup="CreateUser">*</asp:CustomValidator>
		</td>
	</tr>
	<tr>
		<td align="left" class="style2">
			<asp:Label ID="lblCountries" runat="server" CssClass="Label" Text="Country:"></asp:Label>
		</td>
		<td style="width: 328px">
			<telerik:RadComboBox ID="cboCountries" runat="server" DataTextField="Name" DataValueField="Country.Id"
				Culture="(Default)" SortCaseSensitive="False" MarkFirstMatch="True" CausesValidation="False"
				Filter="StartsWith" />
			<asp:CustomValidator ID="ValidatorCountry" runat="server" ModelProperty="Country"
				OnServerValidate="CustomValidation" CssClass="lblError" ValidationGroup="CreateUser">*</asp:CustomValidator>
		</td>
	</tr>
	<tr>
		<td align="left" class="style2">
			<asp:Label ID="lblChangePic" runat="server" CssClass="Label" Text="Alterar Fotografia:"></asp:Label>
		</td>
		<td>
			<telerik:RadUpload ID="RadUpload1" runat="server" Culture="(Default)" 
				MaxFileInputsCount="1" AllowedMimeTypes="image/gif,image/jpeg,image/pjpeg,image/png,image/x-png,image/bmp"/>
		</td>
	</tr>
	<tr>
		<td align="left" class="style2">
			&nbsp;
		</td>
		<td>
				<telerik:RadButton ID="btnSend" runat="server" CssClass="Buttons" Text="Enviar" ValidationGroup="CreateUser"
				Width="100px" onclick="btnSend_Click"/>
		</td>
	</tr>
	<tr>
		<td align="left" class="style2">
			&nbsp;
		</td>
		<td>
			<asp:Label ID="lblError" runat="server" Text="Error!!!" CssClass="lblError" Visible="False" />
			<asp:ValidationSummary ID="ValidationSummary" runat="server" ValidationGroup="CreateUser"
				ForeColor="Red" />
		</td>
	</tr>
	<tr>
		<td align="left" class="style2">
			&nbsp;
		</td>
	</tr>
</table>
